package com.jtcoding.chat.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @author jason.tang
 * @create 2018-12-27 12:52
 * @description
 */

@ApiModel(description = "用户")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User {
    @ApiModelProperty(value = "用户编号")
    private Integer userNum;

    @ApiModelProperty(value = "登录邮箱", required = true)
    @NotBlank(message = "登录邮箱不能为空")
    private String loginEmail;

    @ApiModelProperty(value = "登录手机号")
    private String loginPhone;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "登录密码不能为空")
    private String password;

    @ApiModelProperty(value = "头像URL")
    private String iconURL;

    @ApiModelProperty(value = "二维码")
    private String qrcodeURL;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "验证码")
    private String verCode;

    @ApiModelProperty(value = "注册日期")
    private LocalDateTime createDateTime;

    @ApiModelProperty(value = "个性签名")
    private String signature;

    @ApiModelProperty(value = "网络状态")
    private String netState;

    @ApiModelProperty(value = "备注")
    private String remark;
}